<template>
    <div class="padding-container">
        <div class="my-left">
            <el-card class="box-card">
                <div slot="header" class="clearfix">
                    <h4>开发团队</h4>
                </div>
                <div class="author">
                    <div class="author-profile">
                        <div class="box-center flex flex-center">
                            <div class="author-pic">
                                <div class="surprised">
                                    <div>Hello</div>
                                    {{ name }}
                                </div>
                                <img src="@/assets/images/pic.jpg" width="100px" />
                            </div>
                        </div>
                        <div class="box-center">
                            <div class="author-name text-center blod font-black">后台框架开发者</div>
                            <div class="author-name padding-top text-center">by -李炫</div>
                        </div>
                    </div>
                    <div class="author-bio">
                        <div class="bio-experience">
                            <div class="bio-title">
                                <i class="el-icon-reading"></i>
                                <span class="blod">开发经历</span>
                            </div>
                            <div class="bio-center">
                                <span>冰红茶怎么了你？冰红茶怎么你了？冰红茶你怎么了？</span>
                            </div>
                        </div>
                        <div class="bio-skill">
                            <div class="bio-title">
                                <i class="el-icon-set-up"></i>
                                <span class="blod">使用技术</span>
                            </div>
                            <div class="bio-center">
                                <div class="bio-hg">
                                    <span>Vue</span>
                                    <el-progress :percentage="43"></el-progress>
                                </div>
                                <div class="bio-hg">
                                    <span>JavaScrpit</span>
                                    <el-progress :percentage="26"></el-progress>
                                </div>
                                <div class="bio-hg">
                                    <span>Css</span>
                                    <el-progress :percentage="24"></el-progress>
                                </div>
                                <div class="bio-hg">
                                    <span>ESLint</span>
                                    <el-progress :percentage="100" status="success"></el-progress>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </el-card>
        </div>
        <div class="my-right">
            <el-tabs type="border-card" v-model="activeName"> <!--@tab-click="handleClick"-->
                <el-tab-pane label="项目相关" name="first">
                    <el-card class="box-card">
                        <div class="project">
                            <div class="project-span">
                                <mallki-text class-name="project-title" :text="title"></mallki-text>
                            </div>
                            <el-divider></el-divider>
                            <div class="project-span">
                                <img src="https://gitee.com/RiuXuan/YITAO-ADMIN-BACK/widgets/widget_card.svg?colors=4183c4,ffffff,ffffff,e3e9ed,666666,9b9b9b"
                                    alt="">
                            </div>
                        </div>
                    </el-card>
                </el-tab-pane>
                <el-tab-pane label="项目时间线" name="second">
                    <div class="overflow">

                    </div>
                </el-tab-pane>
                <el-tab-pane label="联系" name="third">
                    <el-card class="box-card infomation">
                        <div class="my-infomation">
                            <div class="github">
                                <!-- github -->
                                <!-- <a href="https://gitee.com/RiuXuan/merchant-back">
                                    <svg data-v-09fe1acc="" width="80" height="80" viewBox="0 0 250 250" aria-hidden="true"
                                        class="svg-git" style="color: rgb(255, 255, 255);">
                                        <path data-v-09fe1acc="" d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z">
                                        </path>
                                        <path data-v-09fe1acc=""
                                            d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2"
                                            fill="currentColor" class="octo-arm" style="transform-origin: 130px 106px;">
                                        </path>
                                        <path data-v-09fe1acc=""
                                            d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z"
                                            fill="currentColor" class="octo-body"></path>
                                    </svg>
                                </a> -->
                                <a href='https://gitee.com/RiuXuan/YITAO-ADMIN-BACK'><img
                                        src='https://gitee.com/RiuXuan/YITAO-ADMIN-BACK/widgets/widget_1.svg'
                                        alt='Fork me on Gitee' style="width: 80px;height: 80px;"></img></a>
                            </div>
                            <div class="education">
                                <div class="edu-item">
                                    <label>项目名称：</label>
                                    <span>大概是文旅的Sass平台</span>
                                </div>
                                <div class="edu-item">
                                    <label>制作团队：</label>
                                    <span>传一董事长和他的外包团伙</span>
                                </div>
                                <div class="edu-item">
                                    <label>所在班级：</label>
                                    <span>传一卓跃JF2307</span>
                                </div>
                                <div class="edu-item">
                                    <label>关于：</label>
                                    <span>about</span>
                                </div>
                                <div class="edu-item">
                                    <label>其他：</label>
                                    <span>other</span>
                                </div>
                            </div>
                        </div>
                        <el-divider></el-divider>
                        <div class="sponsor">
                            <div class="left" style="text-align: center;">
                                <div class="tip custom-block" style="text-align: left;">
                                    <p class="custom-block-title">Donate</p>
                                    <p>如果你觉得这个项目不错，你可以给我买一杯果汁表示鼓励 🍹</p>
                                </div>
                                <img src="@/assets/images/pay/dashang.png" height="240px">
                            </div>
                            <div class="right" style="text-align: center;">
                                <div class="tip custom-block" style="text-align: left;">
                                    <p class="custom-block-title">TIP</p>
                                    <p>或者可以用微信，打赏我一杯可乐</p>
                                </div>
                                <img src="@/assets/images/pay/zanzhu.jpg" height="240px">
                            </div>
                        </div>
                    </el-card>
                </el-tab-pane>
            </el-tabs>
        </div>
    </div>
</template>

<script>
import { mapGetters } from 'vuex'
import MallkiText from '@/components/TextHoverEffect/MallkiText.vue'

export default {
    computed: {
        ...mapGetters([
            'name',
        ])
    },
    components: {
        MallkiText
    },
    data() {
        return {
            title: '你说是啥就是啥平台',
            activeName: 'first'
        }
    },
    // created(){
    //     this.$throw('手动抛出异常')
    // }
}
</script>

<style lang="scss" scoped>
.padding-container>div {
    display: inline-block;
    vertical-align: top;
}

.bio-experience {
    height: 100px;
}

.author-pic>img {
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 50%;
    transform-origin: 95% 40%;
    transition: all .3s ease-in-out;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    /* display: none; */
}

.bio-title {
    border-bottom: 1px solid rgb(223, 228, 237);
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.bio-title>span {
    font-size: 14px;
    margin-left: 5px;
}

.bio-center {
    color: rgb(96, 98, 102);
    font-size: 12px;
}

.bio-hg {
    padding-bottom: 2px;
    font-size: 16px;
}

.author-pic>img:hover {
    transform: translateX(10px) translateY(10px) rotate(-90deg);
}

.surprised {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-sizing: border-box;
    padding-top: 15px;
    text-align: center;
    border: 5px solid rgb(242, 242, 242);
}

.author-pic {
    position: relative;
    text-align: center;
    width: 100px;
    height: 100px;
}

.author {
    width: 100%;
    height: 475px;
}

.box-card h4 {
    margin: 0;
    color: rgb(75, 81, 92);
}

.author-profile {
    height: 175px;
}

.project {
    padding: 1rem;
    height: 450px;
    padding-top: 0;
    overflow: auto
}

.project-title {
    font-family:
        system-ui, -apple-system, BlinkMacSystemFont, segoe ui, Roboto,
        Helvetica, Arial,
        sans-serif, apple color emoji, segoe ui emoji, segoe ui symbol;
    font-size: 64px;
}

.box-center {
    /* display: flex;
    justify-content: center; */
}

.my-left {
    width: 300px;
    /* height: 300px; */
    margin-right: 15px;
}

.my-right {
    width: calc(100% - 300px - 1rem);
    height: 600px;
}

.overflow {
    max-height: 525px;
    overflow-y: auto;
}

.infomation {
    // height: 500px;
    // overflow-x: auto;

}

::v-deep .infomation .el-card__body {
    padding: 0;
}

.infomation .my-infomation {
    min-height: 100px;
    position: relative;
}

.infomation .sponsor {
    height: 400px;
    overflow-x: auto;
}

.infomation .sponsor>div {
    box-sizing: border-box;
    vertical-align: top;
    display: inline-block;
}

.infomation .my-infomation .github {
    position: absolute;
    height: 80px;
    width: 80px;
    right: 0;
    top: 0;
}

.svg-git:hover .octo-arm {
    animation: shake 800ms ease-in-out;
}

@keyframes shake {

    /* 动画需：“对称”实现 */
    10%,
    90% {
        transform: translateX(+1px) rotate(-10deg);
    }


    20%,
    80% {
        transform: translateX(-1px) rotate(+10deg);
    }

    30%,
    70% {
        transform: translateX(+1px) rotate(-10deg);
    }



    40%,
    60% {
        transform: translateX(-1px) rotate(+10deg);
    }

    50% {
        transform: translateX(+1px) rotate(-10deg);
    }
}

.infomation .my-infomation .education {
    padding-top: 10px;
    padding-right: 80px;
}

.infomation .my-infomation .education .edu-item {
    padding: 6px;
    display: inline-block;
    // min-width: 260px;
}

.infomation .el-divider--horizontal {
    margin: 12px 0;
}

.infomation .my-infomation .education .edu-item label {
    display: inline-block;
    // width: 90px;
    padding-left: 10px;
    font-weight: 600;
}

.infomation .my-infomation .education .edu-item span {
    display: inline-block;
    // width: 160px;
    color: #727272;
}


.custom-block.tip {
    // background-color: #f3f5f7;
    border-color: #42b983;
}

.custom-block.danger,
.custom-block.tip,
.custom-block.warning {
    padding: 0.1rem;
    padding-left: 1rem;
    border-left-width: 0.5rem;
    border-left-style: solid;
    // margin: 0.5rem 0;
}
</style>